widget: Fix UPDATES debug rendering
authorTimm Bäder <mail@baedert.org>
Wed, 23 Aug 2017 11:58:21 +0000 (13:58 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 23 Aug 2017 11:58:21 +0000 (13:58 +0200)
Choose the right widget to add the debug updates to (the one with the
window) and the correct region (the one in that window's coordinates).

gtk/gtkwidget.c

index 96b9c98271dbae9ef72a6dbccf5302742013edd3..b2e13dfb3d784a43d93ee14e857b2eb5659aa00d 100644 (file)
@@ -5295,7 +5295,7 @@ gtk_widget_queue_draw_region (GtkWidget            *widget,
   cairo_region_translate (region2, x, y);
 
 invalidate:
-  gtk_debug_updates_add (widget, region);
+  gtk_debug_updates_add (parent, region2);
   gdk_window_invalidate_region (_gtk_widget_get_window (widget), region2, TRUE);
 
   cairo_region_destroy (region2);